#include "VertexArrayNameGL3x.h"

using namespace Renderer;
using namespace Renderer::GL3x;



void Renderer::GL3x::VertexArrayNameGL3x::Destroy()
{
	if (_value)
	{
		glDeleteVertexArrays(1, &_value);
		_value = 0;
	}
}

GLuint Renderer::GL3x::VertexArrayNameGL3x::GetValue()
{
	return _value;
}

Renderer::GL3x::VertexArrayNameGL3x::~VertexArrayNameGL3x()
{
	Destroy();
}

Renderer::GL3x::VertexArrayNameGL3x::VertexArrayNameGL3x()
{
	glGenVertexArrays(1, &_value);
}
